package knowse.app;


import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class ProjectDataObject {

	List<ProjectEntryDataObject> projectEntries;
	
	public ProjectDataObject(String csvFile){
		projectEntries = new ArrayList<ProjectEntryDataObject>();
		//get each line of the csvFile
		csvFile.trim();
		
		//create a ProjectEntryDataObject 
		String[] csvArr = csvFile.split("\n");
		for(int i=1; i < csvArr.length;i++){
			projectEntries.add(new ProjectEntryDataObject(csvArr[i]));
		}
		System.out.println();	
	}
	
	public List<String> testEntryNames(){
		if(projectEntries.size()==0){
			return null;
		}
		ArrayList<String> names = new ArrayList<String>();	
		for(ProjectEntryDataObject peo : projectEntries){
			names.add(peo.toString());
		}
		
		return names;
	}
	
	
}
